//
//  ProxyButton.m
//  ICrEAM
//
//  Created by mac on 16/11/24.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ProxyButton.h"

@implementation ProxyButton
-(id)initWithCoder:(NSCoder *)aDecoder{
    if (self) {
        self=[super initWithCoder:aDecoder];
      
        self.titleLabel.textAlignment=NSTextAlignmentCenter;
        
    }
    return self;
    
}
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat top=10;
    CGFloat width=38;
    return CGRectMake(self.frame.size.width/2.-width/2., top, width, width);
    
}
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    
    return CGRectMake(0,self.height-20,self.frame.size.width ,18);
}
@end
